/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.viewer.entity;

import java.io.Serializable;
import java.util.Date;

import cn.mcsys.myadmin.modules.air.entity.AirParkingLot;
import org.hibernate.validator.constraints.Length;
import cn.mcsys.myadmin.modules.sys.entity.User;

import cn.mcsys.myadmin.common.persistence.DataEntity;

/**
 * 车辆定位Entity
 * @author leopold
 * @version 2018-09-18
 */
public class AirParkingLocation implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private Long id;
	private AirParkingLot airParkingLot;		// 停车场ID
	private Date parkingDate;		// 停车时间
	private String parkingPosition;		// 停车具体位置
	private Integer status;		// 停车状态:0停车状态,1结束停车
	private String parkingLon;		// 停车经度
	private String parkingLat;		// 停车纬度
	private AirViewerUser user;		// 观众端用户ID
	private Date createDate;	// 创建日期
	private String delFlag; 	// 删除标记（0：正常；1：删除；2：审核）
	private String note;		// 备注
	
	public AirParkingLocation() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public AirParkingLot getAirParkingLot() {
		return airParkingLot;
	}

	public void setAirParkingLot(AirParkingLot airParkingLot) {
		this.airParkingLot = airParkingLot;
	}

	public Date getParkingDate() {
		return parkingDate;
	}

	public void setParkingDate(Date parkingDate) {
		this.parkingDate = parkingDate;
	}
	
	@Length(min=0, max=64, message="停车具体位置长度必须介于 0 和 64 之间")
	public String getParkingPosition() {
		return parkingPosition;
	}

	public void setParkingPosition(String parkingPosition) {
		this.parkingPosition = parkingPosition;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	
	@Length(min=0, max=16, message="停车经度长度必须介于 0 和 16 之间")
	public String getParkingLon() {
		return parkingLon;
	}

	public void setParkingLon(String parkingLon) {
		this.parkingLon = parkingLon;
	}
	
	@Length(min=0, max=16, message="停车纬度长度必须介于 0 和 16 之间")
	public String getParkingLat() {
		return parkingLat;
	}

	public void setParkingLat(String parkingLat) {
		this.parkingLat = parkingLat;
	}

	public AirViewerUser getUser() {
		return user;
	}

	public void setUser(AirViewerUser user) {
		this.user = user;
	}

	@Length(min=0, max=64, message="备注长度必须介于 0 和 64 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
}